<template>
  <div>
    <h1>{{ title }}</h1>
    <h1>{{ MyTitle }}</h1>
    <h2>{{name}}  {{age}}</h2>
    <button>这是一个按钮</button>
  </div>
</template>

<script>
export default {
  name: "Header",

  props: {
    MyTitle: {
      type: String,
      required: false,
      default: '默认的标题'
    },
    name: {
      type: String
    },
    age: {
      type: Number
    }
  },
  data() {
    return {
      title: 'header页面头'
    }
  }
}
</script>

<style scoped>

</style>
